<?php
namespace AutoLoading;

class Autoload
{
    public static function autoload($className)
    {
        $fileName = str_replace('\\', DIRECTORY_SEPARATOR,  __DIR__ . '\\'. $className) . '.php';
        if (is_file($fileName)) {
            require_once $fileName;
        } else {
            echo $fileName . ' is not exist'; die;
        }
    }
}